package com.eight.cloud.message.service;

import com.eight.cloud.openfeign.message.model.MqMessage;
import com.eight.cloud.openfeign.message.model.SocketMessage;

/**
 * @InterfaceName: IMessageService
 * @Author: TXC
 * @Date: 2024-10-11 13:58
 **/
public interface IMessageService {
    /**
     * 发送消息
     * @param socketMessage 消息
     */
    void sendWebSocketMessage(SocketMessage<?> socketMessage);

    /**
     * 通过mq发送消息
     * @param mqMessage 消息
     */
    boolean sendRabbitMessage(MqMessage<?> mqMessage);
}
